home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 2: Applications
/
Linux Cubed Series 2 - Applications.iso
/
math
/
gle-3.000
/
gle-3
/
gle
/
makefile.os2
< prev
next >
Wrap
Makefile
|
1995-02-07
|
4KB
|
150 lines
#
# Main Makefile for GLE under OS/2 by Axel Rohde
#
# Compiler EMX 0.8h patchlevel 9 (GCC 2.5.7)
#
# debugging:
#CC = gcc -gg -O -m486
# final:
CC = gcc -O2 -fomit-frame-pointer -m486 -s
# -Zomf -Zmtd -s
# add this for dynamic linking. dynamically linked exe's don't run under DOS.
# extension of objects must be ".o"
LIBS = -lm -lvideo -los2
CFLAGS = -DEMXOS2 -DGOTSTRDUP
# I you use IBM's (Microslugs!) NMAKE
MAKE = nmake
# rules: (nmake calls cl.exe (Microsoft C ;-> ) by default)
.SUFFIXES: .c .o .exe
.c.o:
$(CC) -c $(CFLAGS) $<
GLE_PATH=/usr/local/gle
# Objects:
GLEOBJS=gle.o drawit.o pass.o token.o polish.o fn.o $(MEMMOVE) \
var.o eval.o general.o run.o sub.o font.o core.o name.o \
keyword.o axis.o graph.o b_tab.o b_text.o fitbez.o fitcf.o \
begin.o key.o mychar.o graph2.o memory.o gprint.o edt.o menu.o \
curve.o tex.o turbo.o turboscr.o inkey.o
PSOBJS = d_ps.o miss_os2.o
HPGLOBJS = d_hpgl.o easydev.o miss_os2.o
DVIOBJS = d_bmp.o easydev.o miss_os2.o
OS2PMOBJS = d_pm.o miss_pm.o
OS2PMSOBJS = d_pms.o miss_pms.o
WPOBJS = dviwp.o
# rules to build gle executables
# varargs didn't work with GCC on DEC-5400 Mips, so uses native compiler
#gleparts: warning surface gle_ps fbuild makefmt dofonts \
# inittex.ini gle_hpgl gle_dvi \
# gle_dvip graph.idx
# echo
gleparts: warning gle_ps.exe fbuild.exe makefmt.exe dofonts \
inittex.ini gle_hpgl.exe \
gle_dvi.exe gle_dvip.exe graph.idx d_pm.o gle_pm.exe
warning:
type makewarn.os2
gle: glecmd.c
$(CC) -DGLEBINS=\"$(GLE_BINS)\" glecmd.c -o gle $(CFLAGS) $(LIBS)
makeidx.exe: makeidx.c
$(CC) makeidx.c -o makeidx.exe $(CFLAGS) $(LIBS) def.def
graph.idx: graph.hlp makeidx.exe
makeidx
surface: surfcmd.c
$(CC) -DGLEBINS=\"$(GLE_BINS)\" surfcmd.c -o surface $(CFLAGS) $(LIBS)
gle_ps.exe: $(PSOBJS) $(GLEOBJS)
$(CC) -o gle_ps.exe $(CFLAGS) $(GLEOBJS) $(PSOBJS) $(LIBS) def.def
# if this rule is failing, make sure you have define GLE_TOP
# and also delete any old copies of INITTEX.INI
inittex.ini: init.tex
gle_ps init.tex
gle_hpgl.exe: $(HPGLOBJS) $(GLEOBJS)
$(CC) -o gle_hpgl.exe $(CFLAGS) $(GLEOBJS) $(HPGLOBJS) $(LIBS) def.def
gle_pmf.exe: $(OS2PMOBJS) $(GLEOBJS)
$(CC) -o gle_pmf.exe $(CFLAGS) $(GLEOBJS) $(OS2PMOBJS) $(LIBS) def.def
gle_pm.exe: $(OS2PMSOBJS) $(GLEOBJS)
$(CC) -o gle_pm.exe $(CFLAGS) $(GLEOBJS) $(OS2PMSOBJS) $(LIBS) def.def
gle_dvi.exe: $(DVIOBJS) $(GLEOBJS)
$(CC) -o gle_dvi.exe $(CFLAGS) $(GLEOBJS) $(DVIOBJS) $(LIBS) def.def
gle_dvip.exe: dvitobit.o bmp.o bmp.h dvivt.o
$(CC) -o gle_dvip.exe $(CFLAGS) dvitobit.o bmp.o dvivt.o $(LIBS) def.def
dofonts:
cd font
$(MAKE)
cd ..
doutils:
cd util\fitls
$(MAKE)
cd ..\..
cd util\fitz
$(MAKE)
cd ..\..
cd util\manip
$(MAKE)
cd ..\..
cd util\letz
$(MAKE)
cd ..\..
cd util\contour
$(MAKE)
cd ..\..
cd util\surf
$(MAKE)
cd ..\..
makefmt.exe: makefmt.o parseafm.o parseafm.h
$(CC) -o makefmt.exe $(CFLAGS) makefmt.o parseafm.o -lm def.def
fbuild.exe: fbuild.o token.o
$(CC) -o fbuild.exe $(CFLAGS) fbuild.o token.o -lm def.def
gle.o: gle.c glepath.h all.h
$(CC) -c -DGLEPATH=\"$(GLE_PATH)/\" $(CFLAGS) gle.c
miss_pm.o: miss_os2.c
$(CC) -c $(CFLAGS) -DPM miss_os2.c -o miss_pm.o
miss_pms.o: miss_os2.c
$(CC) -c $(CFLAGS) -DFILLPATH -DPM miss_os2.c -o miss_pms.o
d_pms.o: d_pm.c
$(CC) -c $(CFLAGS) -DFILLPATH d_pm.c -o d_pms.o
$(GLEOBJS): \
all.h axis.h begin.h color.h core.h edt.h \
font.h glepro.h global.h graph.h justify.h key.h \
mydev.h mygraph.h tex.h
clean:
cmd /c del *.obj *.o *.exe inittex.ini